package javabase.base.client10.shallow;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.junit.Test;

/**
 * @author chengshuai
 * @date 2021/4/30 17:24
 * <p>
 * 浅克隆
 */
@Data
@AllArgsConstructor
public class Student implements Cloneable {

    private int age;
    private String name;
    private Father father;

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    /**
     * @param args
     * @throws CloneNotSupportedException
     */
    public static void main(String[] args) throws CloneNotSupportedException {

    }




}
